import { request } from "./request";

// 登录
export function userLogin(userName, password) {
  return request({
    method: 'POST',
    url: '/user/login',
    data: {
      userName: userName,
      password: password
    }
  })
}

// 注册
export function userRegister(userName, password) {
  return request({
    method: 'POST',
    url: '/user/register',
    data: {
      userName: userName,
      password: password
    }
  })
}